<html>
<head>
<title>增加奶茶</title>
<link href="../assets/jquery-1.4.2.min.js" rel="stylesheet" />
<meta charset="utf-8">
<style type="text/css">

</style>
</head>

<body>
	<form id="form" action="mocheck" method="post">
		选择奶茶类别：
		<select name="cname"> #for(c:category)
			<option>#(c.name)</option>
			#end
		</select>
		
	
		<br><br>#for(n:naicha)
		<input type="hidden" name="pid" value="#(n.id)"/>
		输入奶茶名称：<input type="text" name="pname" id="cocoName" required="required" value="#(n.name)"><br>
			#end
			
		<br> 选择规格：
		<table>
			<tr>
				<td>大小</td>
				<td>&nbsp;</td>
				<td>价格</td>
			</tr>
			#for(s:size)
			
			    #if(s.size=="big")
			    <tr>
				<td><input type="checkbox" name="ssize1" value="big" id="bigCheck"
					onclick="check('big')">大</td>
				<td>&nbsp;</td>
				<td><input type="text" name="sprice1" style="width: 60px;"
					id="big" value="#(s.price)"></td>
					<input type="hidden" name="sid1" value="#(s.id)"/>
			</tr>#end
			
			  #if(s.size=="middle")<tr>
				<td><input type="checkbox" name="ssize2" value="middle" id="middleCheck"
					onclick="check('middle')">中</td>
				<td>&nbsp;</td>
				<td><input type="text" name="sprice2" style="width: 60px;"
					id="middle" value="#(s.price)"></td>
					<input type="hidden" name="sid2" value="#(s.id)"/>
			</tr>#end
			    
			    <tr>#if(s.size=="small")
				<td><input type="checkbox" name="ssize3" value="small" id="smallCheck"
					onclick="check('small')">小</td>
				<td>&nbsp;</td>
				<td><input type="text" name="sprice3" style="width: 60px;"
					id="small" value="#(s.price)"></td>
					<input type="hidden" name="sid3" value="#(s.id)"/>
			</tr>#end
			     #end
			
			
			

		</table>
		<input type="submit" value="修改" id="add" >
	</form>
	

	
</body>
</html>